import React from 'react';

import { ConfigProvider } from 'antd';
// 由于 antd 组件的默认文案是英文，所以需要修改为中文
import zhCN from 'antd/lib/locale/zh_CN';
import 'antd/dist/antd.css';

import Router from '../router' // 路由配置

// redux集成
import { Provider } from 'react-redux'
import store from '../redux'

const App = () => {
  return (
    <React.StrictMode>
      <ConfigProvider locale={zhCN}>
        <Provider store={store}>
          <Router />
        </Provider>
      </ConfigProvider>
    </React.StrictMode>
  )
}

export default App